import { request } from "../../utils/api";

const reducer = (state = {}, action) => {
  switch (action.type) {
    case "GETLIST":
      request
        .post("/getDayDiaryList", { day: new Date().getTime() })
        .then((v) => {
          state.data = v.data;
        })
        .catch((e) => console.log(e));
      break;
    default:
      break;
  }
  return state;
};

export default reducer;
